package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.omg.CORBA.PRIVATE_MEMBER;

/**
 * 物品列表对象 product
 *
 * @author 吴倩芸
 * @date 2023-03-04
 */
@Data
@TableName("product")
public class Product extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @TableField(value = "name")
    private String name;

    /**
     * 价值
     */
    @Excel(name = "价值")
    @TableField(value = "worth")
    private String worth;

    /**
     * 库存
     */
    @Excel(name = "库存")
    @TableField(value = "stock")
    private Integer stock;

    /**
     * 图片地址
     */
    @Excel(name = "图片地址")
    @TableField(value = "img_url")
    private String imgUrl;

    @Excel(name = "品牌id")
    @TableField(value = "brand_id")
    private String brandId;

    @Excel(name = "品牌的名字")
    @TableField(exist = false)
    private String brandName;

}
